Skip to main content

All Questions

0votes
0answers
41views

Making JS specs work with headless Chrome

I have a Sinatra app with a Rspec suite and now I need to run it on GitHub Actions. My workflow looks like: name: continuous-integration on: pull_request: branches: - '*' push: ...
Sig's user avatar
  • 6,046
0votes
0answers
126views

Starting chromedriver from rails app gives unable to connect to /usr/bin/chromedriver 127.0.0.1:9515

I've been debugging this for quite some time and I don't know what else I should do to fix this. Long story short: I have a rails app that needs to launch chromedriver to navigate to a specific ...
brunotiago's user avatar
0votes
1answer
87views

NoSuchElementError with Selenium using RubyMine after trying all element attributes

I am tying to write some tests for this website: https://roomy-fire-houseboat.glitch.me/ but unable to find any elements. I can launch the website then add 5 seconds of sleep. Here is the error in ...
Chase Fulford's user avatar
0votes
0answers
415views

How to set `(prefers-reduced-motion: reduce)` to chromedriver from Capybara?

I would like to emulate the setting prefers-reduced-motion: reduce available in CSS/JS but with chromedriver/capybara. It's a Ruby on Rails app with minitest tests. Edit: I tried: setup do page....
Dorian's user avatar
  • 9,248
0votes
1answer
1kviews

Running watir tests on new machine throws " undefined method `chrome' for Selenium::WebDriver::Remote::Capabilities:Class"

On old machine Selenium::WebDriver::Remote::Capabilities.chrome returns #<Selenium::WebDriver::Remote::Capabilities:0x00007fe9d10e66f0 @capabilities={:browser_name=>“chrome”}> On new machine ...
Charlie's user avatar
1vote
0answers
109views

Download a file using Watir (Selenium) gem with Browserless chrome (docker chrome instance)

I'm trying to use browserless chrome docker instance to create a headless instance of chrome and download some files. So far using Watir integration on ruby it's very straight forward, but when I use ...
Jorge Najera T's user avatar
0votes
0answers
549views

Chrome on build server not supported by current selenium-devtools

I'm using the Headless Chrome Webdriver, and finding my builds suddenly breaking on the build service I'm using. It's happened before, but I think it was fixed by upgrading selenium-devtools. It seems ...
rogerkk's user avatar
  • 5,775
0votes
1answer
104views

`connect_until_stable' error when trying to use selenium on Heroku RoR

I'm trying to run a file on Heroku that has selenium. However, I get the following error. /app/vendor/bundle/ruby/3.1.0/gems/selenium-webdriver-4.7.1/lib/selenium/webdriver/common/service_manager.rb:...
Iqbal Bakhsh's user avatar
0votes
1answer
323views

Capybara don't replace default value of input

I have a pretty simple user scaffold pages and some tests on them. it 'update' do visit '/users/new' fill_in 'user[login]', with: 'login' fill_in 'user[password]', with: 'password' ...
Quviry's user avatar
2votes
1answer
63views

Ruby selenium webdriver. Can't navigate to dropdown and choose item from it

Most of the solutions for this issue represenred as this drowpdown = driver.find_element(:id, 'option1') option = Selenium::WebDriver::Select::Support.new(dropdown) option.select_by(:value, "x&...
Sviat's user avatar
3votes
0answers
476views

AWS Lambda Ruby 2.7 and Selenium can't connect to Chrome

I intend to create an AWS lambda function using Ruby 2.7 with Selenium. When I try to run my example function i get: { "errorMessage": "unable to connect to /opt/chromedriver 127.0.0....
damuz91's user avatar
  • 1,768
1vote
1answer
199views

Is there a way to maintain the login status in Capybara?

For example, open the browser in the following code and log in to Google in manual. require "bundler/inline" gemfile do source "https://rubygems.org" gem "webdrivers"...
megeton's user avatar
0votes
1answer
665views

Error with headless chrome driver unable to click an anchor element

I'm trying to test my pagination feature with rspec, capybara, selenium, and chrome headless driver. I keep running into this error: Failures: 1) Paginations user clicks on next button Failure/...
Josiah's user avatar
0votes
1answer
376views

How to open a Chrome window with Watir

I can't manage to make Watir run properly. I followed all the instructions step by step, installing Watir and the Chrome drivers, and checked that the drivers and Chrome are the same version, v98.0. ...
Kay's user avatar
0votes
2answers
1kviews

Why am I unable to connect to /usr/bin/chromedriver 127.0.0.1:9515?

I'm working on my project, where i need to press a button by Selenium. But when i start it, it gives me this error /home/yarikhrom/.rvm/gems/ruby-3.0.2/gems/selenium-webdriver-4.1.0/lib/selenium/...
gurman's user avatar

153050per page
close